package com.jt;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

//注解的作用：动态的生成get/set/toString....方法
@Data       //一般用get/set方法
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
@Accessors(chain = true)//开启链式加载（重写set方法）
public class User {

    private Integer id;
    private String name;
    private Integer age;
    private String sex;

    //this 代表当前对象
    //链式加载源码
   /*public User setId(Integer id){

        this.id = id;
        return this;
    }
    public User setName(String name){

        this.name = name;
        return this;
    }
    public User setAge(Integer age){
        this.age = age;
        return this;
    }*/


}
